#include<stdio.h>
#include<stdlib.h>
#include<conio.h> 
int main()
{
	int i,j;
	int x = 10;
	int y = 5;
	char in;

	
	while(1){
		system("cls");
		
	  for(i=0;i<=x;i++)
	     printf("\n");
	  for(j=0;j<=y;j++)
	     printf(" ");

	  printf("*\n");
	  for(j=0;j<=(y-2);j++)
	     printf(" ");
	  printf("*****\n");
	  for(j=0;j<=(y-2);j++)
	     printf(" ");
	  printf(" * * \n");
	  
	  scanf("%c",&in);
	  in=getch();
	  if(in=='s')
	     x++;
	  if(in=='w')
	     x--;
      if(in=='a')
	     y--;
	  if(in=='d')
	     y++;
	  	
		 
    }
	
     return 0;
}
